<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateReservacionGeneralTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateReservacionGeneralLabel_idReservacionGeneral}" for="idReservacionGeneral" />
                    <h:inputText id="idReservacionGeneral" value="#{reservacionGeneralController.selected.idReservacionGeneral}" title="#{bundle.CreateReservacionGeneralTitle_idReservacionGeneral}" required="true" requiredMessage="#{bundle.CreateReservacionGeneralRequiredMessage_idReservacionGeneral}"/>
                    <h:outputLabel value="#{bundle.CreateReservacionGeneralLabel_nombre}" for="nombre" />
                    <h:inputText id="nombre" value="#{reservacionGeneralController.selected.nombre}" title="#{bundle.CreateReservacionGeneralTitle_nombre}" />
                    <h:outputLabel value="#{bundle.CreateReservacionGeneralLabel_cedula}" for="cedula" />
                    <h:inputText id="cedula" value="#{reservacionGeneralController.selected.cedula}" title="#{bundle.CreateReservacionGeneralTitle_cedula}" />
                    <h:outputLabel value="#{bundle.CreateReservacionGeneralLabel_apellido1}" for="apellido1" />
                    <h:inputText id="apellido1" value="#{reservacionGeneralController.selected.apellido1}" title="#{bundle.CreateReservacionGeneralTitle_apellido1}" />
                    <h:outputLabel value="#{bundle.CreateReservacionGeneralLabel_apellido2}" for="apellido2" />
                    <h:inputText id="apellido2" value="#{reservacionGeneralController.selected.apellido2}" title="#{bundle.CreateReservacionGeneralTitle_apellido2}" />
                    <h:outputLabel value="#{bundle.CreateReservacionGeneralLabel_estacionamientoAsignado}" for="estacionamientoAsignado" />
                    <h:inputText id="estacionamientoAsignado" value="#{reservacionGeneralController.selected.estacionamientoAsignado}" title="#{bundle.CreateReservacionGeneralTitle_estacionamientoAsignado}" />
                    <h:outputLabel value="#{bundle.CreateReservacionGeneralLabel_tipoReservacion}" for="tipoReservacion" />
                    <h:inputText id="tipoReservacion" value="#{reservacionGeneralController.selected.tipoReservacion}" title="#{bundle.CreateReservacionGeneralTitle_tipoReservacion}" />
                    <h:outputLabel value="#{bundle.CreateReservacionGeneralLabel_cargoMotivo}" for="cargoMotivo" />
                    <h:inputText id="cargoMotivo" value="#{reservacionGeneralController.selected.cargoMotivo}" title="#{bundle.CreateReservacionGeneralTitle_cargoMotivo}" />
                    <h:outputLabel value="#{bundle.CreateReservacionGeneralLabel_placa}" for="placa" />
                    <h:inputText id="placa" value="#{reservacionGeneralController.selected.placa}" title="#{bundle.CreateReservacionGeneralTitle_placa}" />
                </h:panelGrid>
                <br />
                <h:commandLink action="#{reservacionGeneralController.create}" value="#{bundle.CreateReservacionGeneralSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{reservacionGeneralController.prepareList}" value="#{bundle.CreateReservacionGeneralShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateReservacionGeneralIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
